package com.itheima.health.dao;

import com.itheima.health.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @program: itcast_health
 * @create: 2019-10-25 17:21
 * @author: li he
 * @description:
 */
public interface OrderDao {
    long findCountByCondition(Order order);

    void add(Order orderAdd);

    Map<String, Object> findById(Integer id);

    long findOrderCountBySetMealId(Integer id);

    long findTodayOrderNumber(String today);

    long findTodayVisitsNumber(String today);

    long findOrderNumberByScopeDate(@Param("startDate") String startDate,@Param("endDate") String endDate);

    long findVisitsNumberByDate(String date);

    List<Map<String,Object>> findHotSetmeal();
}